package main

import (
	"gitee.com/swsk33/gopher-fetch"
	"gitee.com/swsk33/landsat-fetch/cmd"
	"gitee.com/swsk33/sclog"
	"time"
)

func init() {
	// 初始化下载器
	gopher_fetch.ConfigEnableLogger(false)
	gopher_fetch.ConfigEnvironmentProxy()
	gopher_fetch.GlobalConfig.Retry = 15
	gopher_fetch.GlobalConfig.StatusNotifyDuration = 500 * time.Millisecond
}

func main() {
	e := cmd.RootCmd.Execute()
	if e != nil {
		sclog.ErrorLine("运行命令出错！")
		sclog.ErrorLine(e.Error())
	}
}